// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期：2024-01-04 11:04:57
// 生成路径: api/v1/flow/flow_form.go
// 生成人：gfast
// desc:流程表单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================

package flow

import (
	"github.com/gogf/gf/v2/frame/g"
	commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
	"github.com/tiger1103/gfast/v3/internal/app/flow/model"
)

// FlowFormSearchReq 分页请求参数
type FlowFormSearchReq struct {
	g.Meta `path:"/list" tags:"流程管理/流程表单" method:"get" summary:"流程表单列表"`
	commonApi.Author
	model.FlowFormSearchReq
}

// FlowFormSearchRes 列表返回结果
type FlowFormSearchRes struct {
	g.Meta `mime:"application/json"`
	*model.FlowFormSearchRes
}

// FlowFormAddReq 添加操作请求参数
type FlowFormAddReq struct {
	g.Meta `path:"/add" tags:"流程管理/流程表单" method:"post" summary:"流程表单添加"`
	commonApi.Author
	*model.FlowFormAddReq
}

// FlowFormAddRes 添加操作返回结果
type FlowFormAddRes struct {
	commonApi.EmptyRes
}

// FlowFormEditReq 修改操作请求参数
type FlowFormEditReq struct {
	g.Meta `path:"/edit" tags:"流程管理/流程表单" method:"put" summary:"流程表单修改"`
	commonApi.Author
	*model.FlowFormEditReq
}

// FlowFormEditRes 修改操作返回结果
type FlowFormEditRes struct {
	commonApi.EmptyRes
}

// FlowFormGetReq 获取一条数据请求
type FlowFormGetReq struct {
	g.Meta `path:"/get" tags:"流程管理/流程表单" method:"get" summary:"获取流程表单信息"`
	commonApi.Author
	Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}

// FlowFormGetRes 获取一条数据结果
type FlowFormGetRes struct {
	g.Meta `mime:"application/json"`
	*model.FlowFormInfoRes
}

// FlowFormDeleteReq 删除数据请求
type FlowFormDeleteReq struct {
	g.Meta `path:"/delete" tags:"流程管理/流程表单" method:"delete" summary:"删除流程表单"`
	commonApi.Author
	Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}

// FlowFormDeleteRes 删除数据返回
type FlowFormDeleteRes struct {
	commonApi.EmptyRes
}
